Fix for profiling.
authorRotem Liss <rotem@users.mediawiki.org>
Wed, 23 Aug 2006 11:41:30 +0000 (11:41 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Wed, 23 Aug 2006 11:41:30 +0000 (11:41 +0000)
includes/Title.php

index 8fbc28a..6f740dc 100644 (file)
@@ -1075,6 +1075,7 @@ class Title {
                if( $action == 'create' ) {
                        if( (  $this->isTalkPage() && !$wgUser->isAllowed( 'createtalk' ) ) ||
                                ( !$this->isTalkPage() && !$wgUser->isAllowed( 'createpage' ) ) ) {
+                               wfProfileOut( $fname );
                                return false;
                        }
                }